package com.sudu.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName("user_t")
@ApiModel("用户实体类")
public class User {
    @ApiModelProperty("用户id")
    private int id ;
    @ApiModelProperty("用户昵称")
    private String username ;
    @ApiModelProperty("用户密码")
    private String password ;
    @ApiModelProperty("用户账号（电话）")
    private String phone ;
    @ApiModelProperty("盐值")
    private String salt ;
    @ApiModelProperty("逻辑删除")
    private int isDelete ;
    @ApiModelProperty("个性签名")
    private String cardCase ;
    @ApiModelProperty("创建时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd hh:mm:ss" , timezone="GMT+8")
    private Date createTime ;
    @ApiModelProperty("头像url")
    private String handUrl ;
    @ApiModelProperty("性别")
    private String sex ;
}
